<!DOCTYPE html>
<html lang="cn">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    #g-canvas {
      outline: 1px solid #ccc;
    }
  </style>
  <script src="./utils.js"></script>
  <script src="./spirit.js"></script>
  <script src="./paddle.js"></script>
  <script src="./ball.js"></script>
  <script src="./block.js"></script>
  <script src="./score.js"></script>
  <script src="./game.js"></script>
  <script src="./scene.js"></script>
  <script src="./scene_main.js"></script>
  <script src="./scene_over.js"></script>
</head>

<body>
  <canvas id="g-canvas" width="600" height="400"></canvas>
</body>

<script>

  function _main() {
    var canvas = document.getElementById('g-canvas')
    var game = new Game(canvas)
    var scene_main = new SceneMain(game)
    game.runWithScene(scene_main)
  }

  _main()

</script>

</html>